import {request} from "@/service/request";

export function fetchUpdateUserInfo(params: Api.Entity.User) {
  return request<Api.Entity.User>({
    url: '/current/update',
    method: 'post',
    data: params
  });
}

export function fetchGetCurrentUserInfo() {
  return request<Api.Entity.User>({
    url: '/current/info',
    method: 'get',
  });
}
